DataSource for Entity Framework for WinForms
GroupBy<TSource,TKey,TElement>(IIndexedSource<TSource>,Expression<Func<TSource,TKey>>,Expression<Func<TSource,TElement>>) メソッド

C1.LiveLinq.4.5.2 アセンブリ > C1.LiveLinq 名前空間 > IndexedQueryExtensions クラス > GroupBy メソッド : GroupBy<TSource,TKey,TElement>(IIndexedSource<TSource>,Expression<Func<TSource,TKey>>,Expression<Func<TSource,TElement>>) メソッド
source 内の要素の型。
keySelector によって返されるキーの型。
System.Linq.IGrouping`2 内の要素の型。
要素をグループ化する C1.LiveLinq.Indexing.IIndexedSource<T>
各要素のキーを抽出する関数。
System.Linq.IGrouping`2 内の要素に各ソース要素をマッピングする関数。
指定されたキーセレクタ関数に従ってコレクションの要素をグループ化し、指定された関数を使用して各グループの要素を投影します。
シンタックス
'宣言
 
Public Overloads Shared Function GroupBy
    (Of TSource,TKey,TElement)( _
   ByVal source As IIndexedSource(Of TSource), _
   ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of TSource,TKey)), _
   ByVal elementSelector As System.Linq.Expressions.Expression(Of Func(Of TSource,TElement)) _
) As IIndexedSource(Of IGrouping(Of TKey,TElement))
public static IIndexedSource<IGrouping<TKey,TElement>> GroupBy<TSource,TKey,TElement>( 
   IIndexedSource<TSource> source,
   System.Linq.Expressions.Expression<Func<TSource,TKey>> keySelector,
   System.Linq.Expressions.Expression<Func<TSource,TElement>> elementSelector
)

パラメータ

source
要素をグループ化する C1.LiveLinq.Indexing.IIndexedSource<T>
keySelector
各要素のキーを抽出する関数。
elementSelector
System.Linq.IGrouping`2 内の要素に各ソース要素をマッピングする関数。

型パラメータ

TSource
source 内の要素の型。
TKey
keySelector によって返されるキーの型。
TElement
System.Linq.IGrouping`2 内の要素の型。

戻り値の型

それぞれが TElement 型要素のオブジェクトのコレクションとキーを含む System.Linq.IGrouping`2 オブジェクトのコレクション。
参照

IndexedQueryExtensions クラス
IndexedQueryExtensions メンバ
オーバーロード一覧